<?php   // $Id: voir_lot.php 167 2008-04-28 22:56:52Z pcoustillas $ ?>
<?php   
/*Copyright (C) 2003-2004 Guy Hendrickx
Licensed under the terms of the GNU  General Public License:http://www.opensource.org/licenses/gpl-license.php
File Authors:Guy Hendrickx 
Modifié par Pierre Coustillas */

require_once("include/verif.php");
require_once("include/config/common.php");
require_once("include/config/var.php");
require_once("include/language/$lang.php");
require_once("include/utils.php");
require_once("include/headers.php");


?>

<table class="page" align="center">
	<tr>
		<td class="page" align="center">
			<?php
			require_once("include/head.php");
			?>
		</td>
	</tr>
<tr>
	<td class="page" align="center">
	<?php
	if ($user_com == "n") {
	echo"<h1>$lang_commande_droit</h1>";
	exit;
	}
	$num_get=isset($_GET['num'])?$_GET['num']:"";
	$sql = "SELECT ingr, fourn, fourn_lot 
			FROM " . $tblpref ."cont_lot 
			WHERE num_lot= $num_get";
	$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
	?>
	
			<table class="boiteaction">
	<caption><?php   echo "Contenu du lot $num_get"; ?></caption>
				<tr> 
					<th><?php   echo Ingredient; ?></th>
					<th><?php   echo "Fournisseur"; ?></th>
					<th><?php   echo "fourn_lot"; ?></th>
					</tr>
				<?php  
	while($data = mysql_fetch_array($req))
	{
	$ingr = $data['ingr'];
	$fourn = $data['fourn'];
	$fourn_lot = $data['fourn_lot'];
	?>
				<tr> 
					<td  class='<?php   echo couleur_alternee (); ?>'><?php   echo $ingr; ?></td>
					<td class='<?php   echo couleur_alternee (FALSE); ?>'><?php   echo "$fourn"; ?></td>
					<td class='<?php   echo couleur_alternee (FALSE); ?>'><?php   echo $fourn_lot; ?></td>
	
	

</tr>
<?php   } ?> 
</table>
   
<?php  
require_once("include/bas.php");
?>
</td></tr>
</table>
</body>
</html>
